import type { APIGetUserInfoReqData, APIUserInfo } from '@/types/api/user'
import { UserModel } from '../models/user'

export class UserService {
  protected userModel: UserModel
  constructor() {
    this.userModel = new UserModel()
  }
  // 查询用户信息
  async getUserInfo(params: APIGetUserInfoReqData): Promise<APIUserInfo> {
    return this.userModel.getUserInfo(params)
  }
}
